﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Net;

namespace Skipette
{
    public class CashedInfo
    {
        public String username;
        public Image profilePic;
        public Skipette.Program.STATUS status;
        public List<Conversation> conversations;
        public String firstName;
        public String surname;
        public String from;
        public String location;
        public List<Account> friends;
        public string birthDate; // 13/04/1984
        public string about;
        public String lastIp;

        public Account LoadToAcc()
        {
            Account result = new Account();
            result.about = about;
            result.birthDate = birthDate;
            result.firstName = firstName;
            result.friends = friends;
            result.from = from;
            result.location = location;
            result.surname = surname;
            return result;
        }

        public void LoadFromAcc(Account acc)
        {
            this.about = acc.about;
            this.birthDate = acc.birthDate;
            this.firstName = acc.firstName;
            this.friends = acc.friends;
            this.from = acc.from;
            this.location = acc.location;
            this.surname = acc.surname;
        }
    }
}
